/*
 * igo: com.cctv.igo.security.dto.RoleResource.java Create On 2011-4-28 下午06:52:00 By Q-Wang
 * $Revision: 1.1 $
 */
package com.ctvit.framework.security.dto;

import java.io.Serializable;
import java.util.Date;

/**
 * @author <a href="mailto:apeidou@gmail.com">Q-Wang</a>
 *
 */
public class RoleResource implements Serializable {

	private Long roleId;

	private Long resourceId;

	private String allow;

	private String deny;

	private Long creator;

	private Date createTimestamp;

	private Long modifier;

	private Date modifyTimestamp;

	public RoleResource() {
	}

	public RoleResource(Long roleId, Long resourceId) {
		this.roleId = roleId;
		this.resourceId = resourceId;
	}

	public RoleResource(Long roleId, Long resourceId, String allow, String deny) {
		this.roleId = roleId;
		this.resourceId = resourceId;
		this.allow = allow;
		this.deny = deny;
	}

	/**
	 * @return the roleId
	 */
	public Long getRoleId() {
		return roleId;
	}

	/**
	 * @param roleId the roleId to set
	 */
	public void setRoleId(Long roleId) {
		this.roleId = roleId;
	}

	/**
	 * @return the resourceId
	 */
	public Long getResourceId() {
		return resourceId;
	}

	/**
	 * @param resourceId the resourceId to set
	 */
	public void setResourceId(Long resourceId) {
		this.resourceId = resourceId;
	}

	/**
	 * @return the allow
	 */
	public String getAllow() {
		return allow;
	}

	/**
	 * @param allow the allow to set
	 */
	public void setAllow(String allow) {
		this.allow = allow;
	}

	/**
	 * @return the deny
	 */
	public String getDeny() {
		return deny;
	}

	/**
	 * @param deny the deny to set
	 */
	public void setDeny(String deny) {
		this.deny = deny;
	}

	/**
	 * @return the creator
	 */
	public Long getCreator() {
		return creator;
	}

	/**
	 * @param creator the creator to set
	 */
	public void setCreator(Long creator) {
		this.creator = creator;
	}

	/**
	 * @return the createTimestamp
	 */
	public Date getCreateTimestamp() {
		return createTimestamp;
	}

	/**
	 * @param createTimestamp the createTimestamp to set
	 */
	public void setCreateTimestamp(Date createTimestamp) {
		this.createTimestamp = createTimestamp;
	}

	/**
	 * @return the modifier
	 */
	public Long getModifier() {
		return modifier;
	}

	/**
	 * @param modifier the modifier to set
	 */
	public void setModifier(Long modifier) {
		this.modifier = modifier;
	}

	/**
	 * @return the modifyTimestamp
	 */
	public Date getModifyTimestamp() {
		return modifyTimestamp;
	}

	/**
	 * @param modifyTimestamp the modifyTimestamp to set
	 */
	public void setModifyTimestamp(Date modifyTimestamp) {
		this.modifyTimestamp = modifyTimestamp;
	}
}
